package com.visitor.registration.mapper;

import com.visitor.registration.entity.VisitorInterest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface VisitorInterestMapper {
    
    /**
     * 批量插入访客兴趣关系
     */
    int batchInsert(@Param("list") List<VisitorInterest> visitorInterests);
    
    /**
     * 根据访客ID删除所有兴趣关系
     */
    int deleteByVisitorId(Long visitorId);
    
    /**
     * 根据访客ID查询兴趣关系
     */
    List<VisitorInterest> selectByVisitorId(Long visitorId);
} 